export default {
  namespaced: true,
  state: {
    acount: {
      username: '',
      password: ''
    }
  },
  mutations: {
    changeUser(state, payload) {
      let {username, password} = payload
      state.acount.username = username
      state.acount.password = password
      // console.log(state,payload);
    }
  },
  actions: {
    cacheUser(Store, payload) {
      Store.commit('changeUser', payload);
    }
  }
}